package com.feng.financial.entity;

import com.feng.financial.entity.enums.ProductStatus;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author Administrator
 */
@Data
@Entity
@Table(name = "product", schema = "manager")
public class ProductEntity implements Serializable {
    @Id
    @Column(name = "id")
    private String id;
    @Basic
    @Column(name = "name")
    private String name;
    @Basic
    @Column(name = "threshold_amount")
    private BigDecimal thresholdAmount;
    @Basic
    @Column(name = "step_amount")
    private BigDecimal stepAmount;
    @Basic
    @Column(name = "lock_term")
    private short lockTerm;
    @Basic
    @Column(name = "reward_rate")
    private BigDecimal rewardRate;
    @Basic
    @Column(name = "status")
    private ProductStatus status;
    @Basic
    @Column(name = "memo")
    private String memo;
    @Basic
    @Column(name = "create_at")
    private Timestamp createAt;
    @Basic
    @Column(name = "create_user")
    private String createUser;
    @Basic
    @Column(name = "update_at")
    private Timestamp updateAt;
    @Basic
    @Column(name = "update_user")
    private String updateUser;

}
